package cn.juque.workflow.mapper;

import cn.juque.workflow.entity.LeaveInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>请假申请单信息</li>
 * </ul>
 * @date 2023-01-31 16:31:27
 **/
@Mapper
public interface LeaveInfoMapper extends BaseMapper<LeaveInfo> {

    /**
     * 分页查询
     *
     * @param page      : page
     * @param leaveInfo : leaveInfo
     * @return List<LeaveInfo>
     */
    List<LeaveInfo> queryInfoList(Page<LeaveInfo> page, @Param("ew") LeaveInfo leaveInfo);

    /**
     * 查询
     *
     * @param leaveInfo : leaveInfo
     * @return List<LeaveInfo>
     */
    List<LeaveInfo> queryInfoList(@Param("ew") LeaveInfo leaveInfo);
}
